<?php
namespace app\index\controller;

use app\index\validate\IndexValue;
use think\Controller;

class Index extends Controller
{
    public function index()
    {
      return $this->fetch();
    }

    public function login(){
      $err = (new IndexValue())->goCheck();
      if($err !== true){
        $this->error($err);
      }
        $data = input('post.');
//        $vali = new IndexValue();
//        if (!$vali->check($data)){
//            $this->error($vali->getError());
//        }

         
    }

}
